package com.glsc.ngateway.common.base.domainmapper;

import com.glsc.ngateway.common.api.platform.dto.it.VirtualManageExport;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;


public class VirtualRowMapper implements RowMapper<VirtualManageExport> {

    @Override
    public VirtualManageExport mapRow(ResultSet rs, int rowNum) throws SQLException {
        VirtualManageExport virtualManageExport = new VirtualManageExport();
        virtualManageExport.setBusinessName(rs.getString("business_name"));
        virtualManageExport.setNetworkSegment(rs.getString("network_segment"));
        virtualManageExport.setApplicationDetail(rs.getString("application_detail"));
        virtualManageExport.setMachineArea(rs.getString("machine_area"));
        virtualManageExport.setVirtualName(rs.getString("virtual_name"));
        virtualManageExport.setOperationSys(rs.getString("operation_sys"));
        virtualManageExport.setMachineRoom(rs.getString("machine_room"));
        virtualManageExport.setIp1(rs.getString("ip1"));
        virtualManageExport.setIp2(rs.getString("ip2"));
        virtualManageExport.setVcentIp(rs.getString("vcent_ip"));
        virtualManageExport.setCpu(rs.getString("cpu"));
        virtualManageExport.setMemory(rs.getString("memory"));
        virtualManageExport.setVirtualIp(rs.getString("virtual_ip"));
        virtualManageExport.setQj(rs.getString("qj"));
        virtualManageExport.setName(rs.getString("name"));
        virtualManageExport.setDepartment(rs.getString("department"));
        virtualManageExport.setMark(rs.getString("mark"));

        return virtualManageExport;
    }


}

